/**   
* @Title: PrivilegeTimer.java 
* @Package com.leesche.zcsp.node.web.timer 
* @Description:() 
* @author dennies yang
* @date 2016年10月14日 下午2:30:04 
* @version V1.0   
*/
package com.leesche.zcsp.node.web.timer;

import com.leesche.zcsp.node.app.v1.constants.AppContants;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.leesche.zcsp.node.web.service.privilege.PrivilegeService;

/**
 * @Title: PrivilegeTimer.java
 * @Package com.leesche.zcsp.node.web.timer
 * @Description:()
 * @author dennies yang
 * @date 2016年10月14日 下午2:30:04
 * @version V1.0
 */
@Component
@Lazy(value = false)
public class PrivilegeTimer {
	private final static Logger LOGGER = Logger.getLogger(PrivilegeTimer.class);
	@Autowired
	private PrivilegeService privilegeService;
	/**
	 * 
	* @Title: doWechatTimer 
	* @Description: TODO(每隔2个小时刷新一次权限) 
	* @param    
	* @return void   
	* @throws
	 */
	@Scheduled(fixedRate = 1000 * 60 * 60 * 2)
	public void doWechatTimer() {
		privilegeService.refreshPrivilege();
	}


}
